#with open("family.txt","rt") as file_object:
#    for line in file_object:
#        line = line.strip()
#        print(line)


with open("family.txt","rt") as f:
    line = f.readlines()
q =''
for i in line:
    q += i.rstrip()
birthday = input("tell me you birthday:")
if birthday in q:
    print("Your birthday appears in the first million digits of pi!")
else:
    print("NO")